import { Row, Col } from 'antd';
import { history } from 'umi';

import styles from './global.less'
import nothing from '@/assets/img_404.png';

let goback = () => {
    history.goBack()
};

export default () => {
    return (
        <>
            <Row justify="center" align="middle" className={styles.errorBlock}>
                <Col>
                    <img src={nothing} alt="404" />
                </Col>
                <Col>
                    <p>
                        页面找不到啦，<a onClick={goback}>返回上一个页面</a>
                    </p>
                </Col>
            </Row>
            <div className={styles.descriptionBlock}>
                <p>Tips：Edit stateless component</p>
            </div>
        </>
    );
};